package com.javabi.htmlbuilder.html;

/**
 * An HTML Element Name.
 */
public enum HTMLElementName {

	/** The title element. */
	TITLE("title"),

	/** The br element. */
	LINE_BREAK("br"),
	/** The hr element. */
	HORIZONTAL_RULE("hr"),

	/** The a element. */
	ANCHOR("a"),

	/** The header 1 element. */
	HEADER_1("h1"),
	/** The header 2 element. */
	HEADER_2("h2"),
	/** The header 3 element. */
	HEADER_3("h3"),
	/** The header 4 element. */
	HEADER_4("h4"),
	/** The header 5 element. */
	HEADER_5("h5"),
	/** The header 6 element. */
	HEADER_6("h6"),

	/** The center element. */
	CENTER("center"),
	/** The pre element. */
	PRE("pre"),
	/** The bold element. */
	BOLD("b"),
	/** The italic element. */
	ITALIC("i"),
	/** The bold element. */
	PARAGRAPH("p"),

	/** The table element. */
	TABLE("table"),
	/** The tr element. */
	TABLE_ROW("tr"),
	/** The td element. */
	TABLE_DATA("td"),
	/** The th element. */
	TABLE_HEADER("th"),

	/** The ordered list element. */
	ORDERED_LIST("ol"),
	/** The unordered list element. */
	UNORDERED_LIST("ul"),
	/** The list item. */
	LIST_ITEM("li"),

	/** The form element. */
	FORM("form"),
	/** The text area element. */
	TEXT_AREA("textarea"),
	/** The input element. */
	INPUT("input"),
	/** The select element. */
	SELECT("select"),
	/** The option element. */
	OPTION("option"),

	/** The style element. */
	STYLE("style"),
	/** The link element. */
	LINK("link"),

	/** The division element. */
	DIV("div"),
	/** The span element. */
	SPAN("span"),

	/** The body element. */
	BODY("body"),
	/** The head element. */
	HEAD("head"),
	/** The html element. */
	HTML("html");

	/** The name. */
	private final String name;

	/**
	 * Creates a new HTML element name.
	 * @param name the name.
	 */
	private HTMLElementName(String name) {
		this.name = name;
	}

	/**
	 * Returns the name.
	 * @return the name.
	 */
	public String getName() {
		return name;
	}

	@Override
	public String toString() {
		return name;
	}

}
